from todo_api_project.base.myBase import Tools
class create_model(Tools):
    path = '/task/info'
    def create_action(self, title,hd):
        mydata = {
            "title":title
        }
        res = self.huihua.post(url=self.hosturl+self.path, data=mydata, headers=hd)
        return res.json()
# import requests
# from todo_api_project.api.login_api import login_model
# s = requests.session()
# reg = login_model(huihua=s)
# msg = reg.login_action(usr='adminhjhdka',pwd='admin12333')
# print(msg)
# getuserid = msg['userId']
# getuserToken = msg['userToken']
# hd = {"userId":getuserid,"userToken":getuserToken}
# create = create_model(huihua=s)
# msg = create.create_action(title='这是一个任务12312',hd=hd)
# print(msg)